package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/2/22 15:25
 * @Description:
 */
@Table("userinfo")
public class UserInfo {
    @PrimaryKey(value = "userid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer userid;
    @Column(column = "userstr",columnType = ColumnType.STRING,IsNull = false,columnSize = 50)
    private String userstr;
    @Column(column = "username",columnType = ColumnType.STRING,IsNull = false,columnSize = 50)
    private String username;
    @Column(column = "openid",columnType = ColumnType.STRING,IsNull = true,columnSize = 64)
    private String openid;
    @Column(column = "tiyannums",columnType = ColumnType.INT,IsNull = false)
    private Integer tiyannums;
    @Column(column = "tiyansums",columnType = ColumnType.INT,IsNull = true)
    private Integer tiyansums;

    @Column(column = "restclass",columnType = ColumnType.INT,IsNull = true)
    private Integer restclass;
    @Column(column = "totleclass",columnType = ColumnType.INT,IsNull = true)
    private Integer totleclass;
    @Column(column = "totleamount",columnType = ColumnType.INT,IsNull = true)
    private Integer totleamount;
    @Column(column = "rechargenum",columnType = ColumnType.INT,IsNull = true)
    private Integer rechargenum;
    @Column(column = "sex",columnType = ColumnType.INT,IsNull = true,columnSize = 1)
    private Integer sex;
    @Column(column = "telephone",columnType = ColumnType.STRING,IsNull = true,columnSize = 11)
    private String telephone;
    @Column(column = "validflag",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String validflag;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Column(column = "addtime",columnType = ColumnType.DATE,IsNull = true)
    private Date addtime;
    @Column(column = "addid",columnType = ColumnType.INT,IsNull = true)
    private Integer addid;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Column(column = "updatetime",columnType = ColumnType.DATE,IsNull = true)
    private Date updatetime;
    @Column(column = "updateid",columnType = ColumnType.INT,IsNull = true)
    private Integer updateid;
    @Column(column = "usercomment",columnType = ColumnType.TEXT,IsNull = true)
    private String usercomment;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(column = "deadline",columnType = ColumnType.DATE,IsNull = true)
    private Date deadline;

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public String getUsercomment() {
        return usercomment;
    }

    public void setUsercomment(String usercomment) {
        this.usercomment = usercomment;
    }

    public String getUserstr() {
        return userstr;
    }

    public void setUserstr(String userstr) {
        this.userstr = userstr;
    }

    public Integer getTiyansums() {
        return tiyansums;
    }

    public void setTiyansums(Integer tiyansums) {
        this.tiyansums = tiyansums;
    }

    public Integer getTiyannums() {
        return tiyannums;
    }

    public void setTiyannums(Integer tiyannums) {
        this.tiyannums = tiyannums;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getValidflag() {
        return validflag;
    }

    public void setValidflag(String validflag) {
        this.validflag = validflag;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Integer getAddid() {
        return addid;
    }

    public void setAddid(Integer addid) {
        this.addid = addid;
    }

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public Integer getRestclass() {
		return restclass;
	}

	public void setRestclass(Integer restclass) {
		this.restclass = restclass;
	}

	public Integer getTotleclass() {
		return totleclass;
	}

	public void setTotleclass(Integer totleclass) {
		this.totleclass = totleclass;
	}

	public Integer getTotleamount() {
		return totleamount;
	}

	public void setTotleamount(Integer totleamount) {
		this.totleamount = totleamount;
	}

	public Integer getRechargenum() {
		return rechargenum;
	}

	public void setRechargenum(Integer rechargenum) {
		this.rechargenum = rechargenum;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Integer getUpdateid() {
		return updateid;
	}

	public void setUpdateid(Integer updateid) {
		this.updateid = updateid;
	}
    
}
